<script setup>
import { ref } from 'vue';
const input = ref('');
import axios from 'axios';


// 查询公告
function search() {
    axios.get("http://localhost:1337/api/v1/notices").then(r => {
        console.log(r.data);
    })
}
</script>

<template>
    <div>
        <h2>公告管理</h2>
    </div>
    <div>
        <el-row :gutter="24">
            <el-col :span="20">
                名字:<el-input v-model="input" style="width: 240px" placeholder="请输入" />
            </el-col>
            <el-col :span="2">
                <el-button>重置</el-button>
            </el-col>
            <el-col :span="2">
                <el-button type="primary" @click="search()">查询</el-button>
            </el-col>
        </el-row>
    </div>

    <el-row :gutter="24">
        <el-col :span="18">
            <span>公告</span>
        </el-col>
        <el-col :span="2">
            <el-button type="primary">
                <el-icon>
                    <Plus />
                </el-icon>
                新建
            </el-button>

        </el-col>
        <el-col :span="1">
            <el-button type="primary">
                <el-icon>
                    <Plus />
                </el-icon>

            </el-button>

        </el-col>
        <el-col :span="1">
            <el-button type="primary">
                <el-icon>
                    <Plus />
                </el-icon>

            </el-button>

        </el-col>
        <el-col :span="1">
            <el-button type="primary">
                <el-icon>
                    <Plus />
                </el-icon>

            </el-button>

        </el-col>
    </el-row>

</template>
<style scoped>
.el-row {
    margin-bottom: 20px;
}

.el-row:last-child {
    margin-bottom: 0;
}

.el-col {
    border-radius: 4px;
}

.grid-content {
    border-radius: 4px;
    min-height: 36px;
}
</style>